//  布局结构图片映射
const requireImg = (imgPath) => {
  return new URL(imgPath, import.meta.url).href;
};
export const layoutImgMap = {
  logicalStructure: requireImg('../assets/img/structures/logicalStructure.png'),
  mindMap: requireImg('../assets/img/structures/mindMap.png'),
  organizationStructure: requireImg('../assets/img/structures/organizationStructure.png'),
  catalogOrganization: requireImg('../assets/img/structures/catalogOrganization.png'),
  timeline: requireImg('../assets/img/structures/timeline.png'),
  timeline2: requireImg('../assets/img/structures/timeline2.png'),
  fishbone: requireImg('../assets/img/structures/fishbone.png'),
  verticalTimeline: requireImg('../assets/img/structures/verticalTimeline.png')
}

//  主题图片映射
export const themeMap = {
  default: requireImg('../assets/img/themes/default.jpg'),
  classic: requireImg('../assets/img/themes/classic.jpg'),
  minions: requireImg('../assets/img/themes/minions.jpg'),
  pinkGrape: requireImg('../assets/img/themes/pinkGrape.jpg'),
  mint: requireImg('../assets/img/themes/mint.jpg'),
  gold: requireImg('../assets/img/themes/gold.jpg'),
  vitalityOrange: requireImg('../assets/img/themes/vitalityOrange.jpg'),
  greenLeaf: requireImg('../assets/img/themes/greenLeaf.jpg'),
  dark2: requireImg('../assets/img/themes/dark2.jpg'),
  skyGreen: requireImg('../assets/img/themes/skyGreen.jpg'),
  classic2: requireImg('../assets/img/themes/classic2.jpg'),
  classic3: requireImg('../assets/img/themes/classic3.jpg'),
  classic4: requireImg('../assets/img/themes/classic4.jpg'),
  classicGreen: requireImg('../assets/img/themes/classicGreen.jpg'),
  classicBlue: requireImg('../assets/img/themes/classicBlue.jpg'),
  blueSky: requireImg('../assets/img/themes/blueSky.jpg'),
  brainImpairedPink: requireImg('../assets/img/themes/brainImpairedPink.jpg'),
  dark: requireImg('../assets/img/themes/dark.jpg'),
  earthYellow: requireImg('../assets/img/themes/earthYellow.jpg'),
  freshGreen: requireImg('../assets/img/themes/freshGreen.jpg'),
  freshRed: requireImg('../assets/img/themes/freshRed.jpg'),
  romanticPurple: requireImg('../assets/img/themes/romanticPurple.jpg'),
  simpleBlack: requireImg('../assets/img/themes/simpleBlack.jpg'),
  courseGreen: requireImg('../assets/img/themes/courseGreen.jpg'),
  coffee: requireImg('../assets/img/themes/coffee.jpg'),
  redSpirit: requireImg('../assets/img/themes/redSpirit.jpg'),
  blackHumour: requireImg('../assets/img/themes/blackHumour.jpg'),
  lateNightOffice: requireImg('../assets/img/themes/lateNightOffice.jpg'),
  blackGold: requireImg('../assets/img/themes/blackGold.jpg'),
  autumn: requireImg('../assets/img/themes/autumn.jpg'),
  avocado: requireImg('../assets/img/themes/avocado.jpg'),
  orangeJuice: requireImg('../assets/img/themes/orangeJuice.jpg'),
  oreo: requireImg('../assets/img/themes/oreo.jpg'),
  shallowSea: requireImg('../assets/img/themes/shallowSea.jpg'),
  lemonBubbles: requireImg('../assets/img/themes/lemonBubbles.jpg'),
  rose: requireImg('../assets/img/themes/rose.jpg'),
  seaBlueLine: requireImg('../assets/img/themes/seaBlueLine.jpg'),
  neonLamp: requireImg('../assets/img/themes/neonLamp.jpg'),
  darkNightLceBlade: requireImg('../assets/img/themes/darkNightLceBlade.jpg'),
  morandi: requireImg('../assets/img/themes/morandi.jpg'),
  classic5: requireImg('../assets/img/themes/classic5.jpg'),
  dark3: requireImg('../assets/img/themes/dark3.jpg'),
  dark4: requireImg('../assets/img/themes/dark4.jpg'),
  cactus: requireImg('../assets/img/themes/cactus.jpg'),
  classic6: requireImg('../assets/img/themes/classic6.jpg'),
  classic7: requireImg('../assets/img/themes/classic7.jpg'),
}

// 公式列表
export const formulaList = [
  'a^2',
  'a_2',
  'a^{2+2}',
  'a_{i,j}',
  'x_2^3',
  '\\overbrace{1+2+\\cdots+100}',
  '\\sum_{k=1}^N k^2',
  '\\lim_{n \\to \\infty}x_n',
  '\\int_{-N}^{N} e^x\\, dx',
  '\\sqrt{3}',
  '\\sqrt[n]{3}',
  '\\sin\\theta',
  '\\log X',
  '\\log_{10}',
  '\\log_\\alpha X',
  '\\lim_{t\\to n}T',
  '\\frac{1}{2}=0.5',
  '\\binom{n}{k}',
  '\\begin{matrix}x & y \\\\z & v\\end{matrix}',
  '\\begin{cases}3x + 5y +  z \\\\7x - 2y + 4z \\\\-6x + 3y + 2z\\end{cases}'
]

export const supportLineStyleLayoutsMap = {
  curve: ['logicalStructure', 'mindMap', 'verticalTimeline'],
  direct: [
    'logicalStructure',
    'mindMap',
    'organizationStructure',
    'verticalTimeline'
  ]
}

export const supportLineRadiusLayouts = [
  'logicalStructure',
  'mindMap',
  'verticalTimeline'
]

export const supportNodeUseLineStyleLayouts = [
  'logicalStructure',
  'mindMap',
  'catalogOrganization',
  'organizationStructure'
]

export const supportRootLineKeepSameInCurveLayouts = [
  'logicalStructure',
  'mindMap'
]
